module.exports = {
	configureWebpack: {
		devServer: {
			disableHostCheck: true,
			proxy: {
				'/api': {
					target: 'http://45.32.47.26:8000',
					changeOrigin: true,
					pathRewrite: {
						'^/dev': ''
					}
				},
				'/hk-lottery': {
					target: 'http://kaijiang588.com/api?token=f1510e3780671ad3&code=hklhc&rows=1&format=json',
					changeOrigin: true,
					headers: {
						'Referer': 'http://kaijiang588.com/api?token=f1510e3780671ad3&code=hklhc&rows=1&format=json',
						'Origin': 'http://kaijiang588.com/api?token=f1510e3780671ad3&code=hklhc&rows=1&format=json'
					}
				},
				'/hk-lotterymore': {
					target: 'http://kaijiang588.com/api?token=f1510e3780671ad3&code=hklhc&rows=10&format=json',
					changeOrigin: true,
					headers: {
						'Referer': 'http://kaijiang588.com/api?token=f1510e3780671ad3&code=hklhc&rows=10&format=json',
						'Origin': 'http://kaijiang588.com/api?token=f1510e3780671ad3&code=hklhc&rows=10&format=json'
					}
				},

			}
		}
	}
}